<!doctype html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
    <meta charset="UTF-8">
    <title>{$meta_title}|管理平台</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />
    <meta name="MobileOptimized" content="320">


    <!-- BEGIN GLOBAL MANDATORY STYLES -->
    <link href="__STATIC__/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
    <!-- END GLOBAL MANDATORY STYLES -->

    <block name="style"></block>

    <!-- BEGIN THEME STYLES -->

    <link href="__STATIC__/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/css/bootstrap-fileupload.css" rel="stylesheet" type="text/css"/>

    <link href="__STATIC__/css/style-metronic.css" rel="stylesheet" type="text/css"/>


    <link href="__STATIC__/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/css/style-responsive.css" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/css/plugins.css" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color"/>
    <link href="__STATIC__/css/custom.css" rel="stylesheet" type="text/css"/>
    <!-- END THEME STYLES -->


    <script src="__STATIC__/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
</head>
<body class="page-header-fixed">

    <!-- BEGIN HEADER -->
    <div class="header navbar navbar-inverse navbar-fixed-top">
        <!-- BEGIN TOP NAVIGATION BAR -->
        <div class="header-inner">
            <!-- BEGIN LOGO -->
            <a class="navbar-brand" href="index.html">
            <img src="__STATIC__/img/logo.png" alt="logo" class="img-responsive" />
            </a>
            <!-- END LOGO -->
            <!-- BEGIN HORIZANTAL MENU -->
            <div class="hor-menu hidden-sm hidden-xs">
                <ul class="nav navbar-nav">
                <volist name="__MENU__.main" id="menu">
                    <li class="<eq name="menu.class" value="current">active</eq>"><a href="{$menu.url|U}">{$menu.title}</a></li>
                </volist>
                </ul>
            </div>
            <!-- END HORIZANTAL MENU -->
            <!-- BEGIN RESPONSIVE MENU TOGGLER -->
            <a href="javascript:;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <img src="__STATIC__/img/menu-toggler.png" alt="" />
            </a>
            <!-- END RESPONSIVE MENU TOGGLER -->
            <!-- BEGIN TOP NAVIGATION MENU -->
            <ul class="nav navbar-nav pull-right">
                <!-- BEGIN USER LOGIN DROPDOWN -->
                <li class="dropdown user">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                    <img alt="" src="__STATIC__/img/avatar_none.png"/>
                    <span class="username">{:session('user_auth.username')}</span>
                    <i class="fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="{:U('User/updatePassword')}"><i class="fa fa-user"></i>修改密码</a></li>
                        <li><a href="{:U('User/updateNickname')}"><i class="fa fa-tasks"></i>修改昵称</a></li>
                        <li><a href="{:U('User/editUserinfo')}"><i class="glyphicon glyphicon-star"></i>编辑资料</a></li>
                        <li class="divider"></li>
                        <li><a href="{:U('Public/logout')}"><i class="fa fa-key"></i>退出</a></li>
                    </ul>
                </li>
                <!-- END USER LOGIN DROPDOWN -->
            </ul>
            <!-- END TOP NAVIGATION MENU -->
        </div>
        <!-- END TOP NAVIGATION BAR -->
    </div>
    <!-- END HEADER -->
    <div class="clearfix"></div>
    <!-- BEGIN CONTAINER -->
    <div class="page-container">
        <!-- BEGIN SIDEBAR -->
        <div class="page-sidebar navbar-collapse collapse">
            <!-- BEGIN SIDEBAR MENU -->

            <block name="sidebar">
            <ul class="page-sidebar-menu">
                <li>
                    <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
                    <div class="sidebar-toggler hidden-phone"></div>
                    <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
                </li>

                <notempty name="_extra_menu">
                    {// 动态扩展菜单 //}
                    {:extra_menu($_extra_menu,$__MENU__)}
                </notempty>
                <volist name="__MENU__.child" id="sub_menu">
                    <!-- 子导航 -->
                    <notempty name="sub_menu">
                        <notempty name="key">
                        <assign name="title" value="$key" />
                        <li class="<volist name="sub_menu" id="menu">
                            <switch name="menu.url|U">
                            <case value="__SELF__">active</case>
                            <case value="__ACTION__.html">active</case>
                            <default />
                            </switch>
                        </volist>" >
                            <a href="javascript:;">
                            <i class="fa fa-reorder"></i>
                            <span class="title">{$title}</span>
                            <span class="arrow "></span>
                            </a>
                            <ul class="sub-menu">
                            <volist name="sub_menu" id="menu">
                                <li class="<switch name="menu.url|U">
                            <case value="__SELF__">active</case>
                            <case value="__ACTION__.html">active</case>
                            <default />
                            </switch>" >
                                    <a href="{$menu.url|U}">{$menu.title}</a>
                                </li>
                            </volist>
                            </ul>
                        </li>
                        </notempty>
                    </notempty>
                    <!-- /子导航 -->
                </volist>

            </ul>
            </block>

            <!-- END SIDEBAR MENU -->
        </div>
        <!-- END SIDEBAR -->
        <!-- BEGIN PAGE -->
        <div class="page-content">

            <div id="top-alert" class="alert alert-danger" style="display: none;position: absolute;top:42px; right: 20px; width: 82%;
     z-index: 100;height: 50px;">
                <button class="close fixed" style="margin-top: 4px;">&times;</button>
                <div class="alert-content">这是内容</div>
            </div>

            <!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
            <div class="modal fade" id="portlet-config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                            <h4 class="modal-title">Modal title</h4>
                        </div>
                        <div class="modal-body">
                            Widget settings form goes here
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn blue">Save changes</button>
                            <button type="button" class="btn default" data-dismiss="modal">Close</button>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal-dialog -->
            </div>
            <!-- /.modal -->
            <!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->


            <block name="nav">
            <notempty name="_show_nav">
            <!-- BEGIN PAGE HEADER-->
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <!-- nav -->
                    <ul class="page-breadcrumb breadcrumb">
                        <assign name="i" value="1" />
                        <foreach name="_nav" item="v" key="k">
                            <if condition="$i eq count($_nav)">
                            <li>
                                <i class="fa fa-home"></i>
                                <a href="index.html">{$v}</a>
                                <i class="fa fa-angle-right"></i>
                            </li>
                            <else />
                            <li><a href="{$k}">{$v}</a></li>
                            </if>
                            <assign name="i" value="$i+1" />
                        </foreach>
                    </ul>
                    <!-- nav -->
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <!-- END PAGE HEADER-->
            </notempty>
            </block>


            <block name="body">



            </block>
            <div class="clearfix"></div>
        </div>
        <!-- END PAGE -->
    </div>
    <!-- END CONTAINER -->
    <!-- BEGIN FOOTER -->
    <div class="footer">
        <div class="footer-inner">
            2013 &copy; design by slpi1.
        </div>
        <div class="footer-tools">
            <span class="go-top">
            <i class="fa fa-angle-up"></i>
            </span>
        </div>
    </div>


    <!--修改密码提示框-->
   <div  id="upass" style="width:100%; height:100%;background: rgba(0,0,0,0.4)!important;position: fixed;top:0;left:0;display: none;z-index: 100000;padding-top: 10%;">
        <div class="text-center">
            <div class="portlet box blue" style="background: #fff;padding: 1%;width: 30%;margin: 0 auto;">

                <div class="portlet-title">
                    <div class="caption">系统提示</div>

                </div>
                <div class="portlet-body">
                    <h3>首次登陆请修改您的登录密码</h3>
                    <div><a href="{:U('User/updatePassword')}" class="btn blue">去设置</a></div>
                </div>
            </div>
        </div>
    </div>




    <!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
    <!-- BEGIN CORE PLUGINS -->
    <!--[if lt IE 9]>
    <script src="__STATIC__/plugins/respond.min.js"></script>
    <script src="__STATIC__/plugins/excanvas.min.js"></script>
    <![endif]-->
    <script src="__STATIC__/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
    <!-- IMPORTANT! Load jquery-ui-1.10.3.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
    <script src="__STATIC__/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
    <script src="__STATIC__/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="__STATIC__/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js" type="text/javascript" ></script>
    <script src="__STATIC__/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
    <script src="__STATIC__/plugins/jquery.blockui.min.js" type="text/javascript"></script>
    <script src="__STATIC__/plugins/jquery.cookie.min.js" type="text/javascript"></script>
    <script src="__STATIC__/plugins/uniform/jquery.uniform.min.js" type="text/javascript" ></script>
    <script src="__STATIC__/bootstrap/js/bootstrap-fileupload.js" type="text/javascript" ></script>
    <script src="__STATIC__/layer/layer.js"></script>
    <script type="text/javascript" src="__JS__/common.js"></script>
    <!-- END CORE PLUGINS -->

    <block name="script"></block>
    <script>
        layer.config({
            offset: '100px'
        });
        var update_pass='{$update_pass}';
        if(update_pass==1){
            $("#upass").css('display','block');
        }
    </script>
</body>
</html>
